//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using EntLibContrib.Resource;
#if !NUNIT
using Microsoft.VisualStudio.TestTools.UnitTesting;
#else
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using TestCleanup = NUnit.Framework.TearDownAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
#endif


namespace EntLibContrib.Resource.Tests
{
	[TestClass]
	public class InternalResourceFactoryFixture
	{
		private string testString = "BlockName";
		private string testValue = "Enterprise Library Resource Application Block";

		[TestMethod]
		public void GetInternalResourceManagerTest ()
		{
			ResourceManager resourceManager = InternalResourceFactory.GetResourceManager();
			Assert.IsNotNull(resourceManager);
		}

		[TestMethod]
		public void CanRetrieveInternalStringTest ()
		{
			ResourceManager resourceManager = InternalResourceFactory.GetResourceManager();
			Assert.AreEqual(testValue, resourceManager[testString]);
		}
	}
}